<?php
echo $html->css('minutes','stylesheet',array(),false);
?>

<div id="minutes">
    <p class="contentmenu">
    <?php 
    if(empty($decisions)){ 
        echo '[ '.$html->link(__('Generate Default Minute Template',true),array('controller'=>'decisions','action'=>'generatetemplate','id'=>$meeting['Meeting']['id'],'committee'=>$dcommittee['Committee']['short_name']),array(),sprintf(__('Are you sure want to generate the template?', true))).' ]';
    }
    echo ' [ '.$html->link(__('Extract minutes',true),array('committee'=>$dcommittee['Committee']['short_name'],'controller'=>'decisions','action'=>'addminutes','meetingid'=>$meeting['Meeting']['id'])).' ]';
    
    ?>
    </p>
    <h2 class="double"><?php __("Meeting's Minute");?><br/><?php echo $html->link(' '.$meeting['Meeting']['meeting_title'].' '.$meeting['Meeting']['meeting_num'],array('controller'=>'meetings','action'=>'view','id'=>$meeting['Meeting']['id'],'committee'=>$dcommittee['Committee']['short_name']));?></h2>

    <center>
        <table border="0" width="600" cellpadding="2" align="center" class="header">
            <tr>            
                <td align="left" valign="top" width="30%"><?php __('Date')?></td>
                <td align="left" valign="top" width="3%">:</td>
                <td align="left" valign="top"><?php echo $html->converttolongdate(date('d/m/Y',strtotime($meeting['Meeting']['meeting_date'])))?></td>
            </tr>
            <tr>            
                <td align="left" valign="top"><?php __('Time')?></td>
                <td align="left" valign="top">:</td>
                <td align="left" valign="top"><?php echo $html->converttimeam(date('H:i a',strtotime($meeting['Meeting']['meeting_date'])));?></td>
            </tr>
            <tr>            
                <td align="left" valign="top"><?php __('Venue')?></td>
                <td align="left" valign="top">:</td>
                <td align="left" valign="top"><?php echo $meeting['Meeting']['venue']?></td>
            </tr>
        </table>
    </center>

    <p class="line">&nbsp;</p>  
    
    <br/>
    <div id="minutestable">        
        <?php echo $this->element('minutes/displayminutes',array('decisions'=>$decisions,'meetingid'=>$meetingid)); ?>
    </div>
<br />


<p>&nbsp;</p>
<?php //echo $html->link(__('Cancel',true),array('controller'=>'meetings','action'=>'view','id'=>$meeting['Meeting']['id'],'committee'=>$dcommittee['Committee']['short_name']),array('class'=>'button'));?>
</div>
